package code.lewdy.lottery;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 开奖号码
 * @author liuding,2012-4-27
 *
 * $LastChangedDate$
 * $Author$ 
 */
@Entity
@Table
public class OpenRewardNumber implements Serializable
{
    private int id;
    private int lotteryId;
    private String lotteryName;
    private String periodNo; //期号
    private String number; //开奖号码
    private Date betStartTime;  //开始投注时间
    private Date betStopTime;  //截止投注时间
    
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    @Column(length=30)
    public String getNumber()
    {
        return number;
    }
    public void setNumber(String number)
    {
        this.number = number;
    }
    @Column(length=30)
    public String getPeriodNo()
    {
        return periodNo;
    }
    public void setPeriodNo(String periodNo)
    {
        this.periodNo = periodNo;
    }
    public int getLotteryId()
    {
        return lotteryId;
    }
    public void setLotteryId(int lotteryId)
    {
        this.lotteryId = lotteryId;
    }
    @Column(length=30)
    public String getLotteryName()
    {
        return lotteryName;
    }
    public void setLotteryName(String lotteryName)
    {
        this.lotteryName = lotteryName;
    }
    @Temporal(TemporalType.TIMESTAMP)
    public Date getBetStartTime()
    {
        return betStartTime;
    }
    public void setBetStartTime(Date betStartTime)
    {
        this.betStartTime = betStartTime;
    }
    @Temporal(TemporalType.TIMESTAMP)
    public Date getBetStopTime()
    {
        return betStopTime;
    }
    public void setBetStopTime(Date betStopTime)
    {
        this.betStopTime = betStopTime;
    }
    
}
